<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
{ext->get_field_value assign="value" name=$el.name parent=$data.page.id}
{select_all_products_with_group id=0 assign="selements"}
<table cellpadding="0" cellspacing="0" width="100%"  bgcolor="#F8F9F9">
	<tr>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="25" width="25%" nowrap class="defaultFormLabel"><nobr>{t t=$el.name}</td>		
		<td width="20">
			<select name="{$el.name}" style="width:300px">
				<option value=""></option>
				{strip}
				{foreach from=$selements key="key" item="val"} 
					{foreach from=$val key="key2" item="val2"} 
						<optgroup label="{$key}/{$val2}">
						{ext->get_elements_with_content id=$key2 assign="selements2"}
						{ext->countArray array=$selements2 assign="groups_count"}
						{if $groups_count > 0}
						{foreach from=$selements2 item="val3"}
							<option value="{$val3.id}" {if $value==$val3.id}selected{/if}>{$val3.name}</option>
						{/foreach}
						{/if}
					{/foreach}
					</optgroup>
				{/foreach}
				{/strip}
			</select>
		</td>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="25" nowrap class="defaultFormLabel"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>